package com.lankystar.logistucs.spring.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="twoOrderAndlastStatus")
public class TwoOrderAndLastStatus {

	private int id;
	private TwoOrder twoOrder;
	private LastStatus lastStatus;
	private long createTime;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@ManyToOne
	@JoinColumn(name="twoOrder_Id")
	public TwoOrder getTwoOrder() {
		return twoOrder;
	}
	public void setTwoOrder(TwoOrder twoOrder) {
		this.twoOrder = twoOrder;
	}
	@ManyToOne
	@JoinColumn(name="lastStatus_Id")
	public LastStatus getLastStatus() {
		return lastStatus;
	}
	public void setLastStatus(LastStatus lastStatus) {
		this.lastStatus = lastStatus;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
}
